-
Notifications
You must be signed in to change notification settings - Fork 4
Fix: Reset deployment attempt counter between sessions #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… failures Co-authored-by: Mikefly123 <[email protected]>
Co-authored-by: Mikefly123 <[email protected]>
Co-authored-by: Mikefly123 <[email protected]>
|
Issues Fixed here:
In the integration test, the AntennaDeployer keeps its own tick counter. As soon as its counter reaches the configured duration it calles stopBurn(). If on the third tick the deployer decides it is time to stop and sends the burnStop signal before Burnwire has a chance to run its scheduler callback and increment m_safetyCounter from 2 to 3. BurnwireEndCount(2) instead of 3 so the log of the count will be off if you use BurnwireEnd Count Solution to count properlly on this is to add the new AntennaBurnSignalCount event to AntennaDeployer to report how many scheduler ticks the burn signal stays active. also Updated the integration test to assert on the new deployer event instead of the burnwire’s BurnwireEndCount.
I removed the copilot additions, changing the this->m_totalAttempts = to init to 0 just makes it count in the same way that m_currentAttempt counts. m_currentAttempt is what is used in the test to count and it gets reset to 0. m_totalAttempts should not be reset to 0 becayse then we can't count how many deploys have happened accross boots which we want as operators |
hrfarmer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fix Antenna Deployment Test
Description
Issues Fixed here:
In the integration test, the AntennaDeployer keeps its own tick counter. As soon as its counter reaches the configured duration it calles stopBurn(). If on the third tick the deployer decides it is time to stop and sends the burnStop signal before Burnwire has a chance to run its scheduler callback and increment m_safetyCounter from 2 to 3. BurnwireEndCount(2) instead of 3 so the log of the count will be off if you use BurnwireEnd Count
Solution to count properlly on this is to add the new AntennaBurnSignalCount event to AntennaDeployer to report how many scheduler ticks the burn signal stays active. also Updated the integration test to assert on the new deployer event instead of the burnwire’s BurnwireEndCount.
I removed the copilot additions, changing the this->m_totalAttempts = to init to 0 just makes it count in the same way that m_currentAttempt counts. m_currentAttempt is what is used in the test to count and it gets reset to 0. m_totalAttempts should not be reset to 0 becayse then we can't count how many deploys have happened accross boots which we want as operators
Related Issues/Tickets
Closes #[issue number for antenna deployer test failures]
How Has This Been Tested?
Test verification needed: Run
make test-integrationtwice without rebooting to confirm tests pass both times.Checklist
Further Notes / Considerations
The fix is minimal (1 line) and surgical. Both attempt counters now reset together when starting a new deployment session, eliminating state leakage between test runs.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
astral.shcurl -LsSf REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.